package com.ruoyi.mapper;

import java.util.List;
import com.ruoyi.domain.ZhwyAdvancedeposit;
import org.apache.ibatis.annotations.Param;

/**
 * 预存款信息Mapper接口
 * 
 * @author liuzhiqiang
 * @date 2024-05-07
 */
public interface ZhwyAdvancedepositMapper 
{
    /**
     * 查询预存款信息
     * 
     * @param id 预存款信息主键
     * @return 预存款信息
     */
    public ZhwyAdvancedeposit selectZhwyAdvancedepositById(Long id);
    //根据商铺id查询预存款
    List<ZhwyAdvancedeposit> selectZhwyAdvancedepositByShopId(Long id);
    //根据商铺id查询去重预存款id
    List<Long> selectZhwyAdvancedepositByShopIdOne(Long id);
    //根据商铺id和收费项目查询预存款
    List<ZhwyAdvancedeposit> selectZhwyAdvancedepositByShopIdAndChargeItemId(@Param("min") Long id, @Param("max") Long chId);
    //根据商铺id和收费项目查询预存款退款信息
    List<ZhwyAdvancedeposit> selectZhwyAdvancedepositByShopIdAndChargeItemId2 (@Param("min") Long id, @Param("max") Long chId);
    /**
     * 查询预存款信息列表
     * 
     * @param zhwyAdvancedeposit 预存款信息
     * @return 预存款信息集合
     */
    public List<ZhwyAdvancedeposit> selectZhwyAdvancedepositList(ZhwyAdvancedeposit zhwyAdvancedeposit);

    /**
     * 新增预存款信息
     * 
     * @param zhwyAdvancedeposit 预存款信息
     * @return 结果
     */
    public int insertZhwyAdvancedeposit(ZhwyAdvancedeposit zhwyAdvancedeposit);

    /**
     * 修改预存款信息
     * 
     * @param zhwyAdvancedeposit 预存款信息
     * @return 结果
     */
    public int updateZhwyAdvancedeposit(ZhwyAdvancedeposit zhwyAdvancedeposit);

    /**
     * 删除预存款信息
     * 
     * @param id 预存款信息主键
     * @return 结果
     */
    public int deleteZhwyAdvancedepositById(Long id);

    /**
     * 批量删除预存款信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteZhwyAdvancedepositByIds(Long[] ids);
}
